Skip to content

Conversation

@wl2027
Copy link
Contributor

@wl2027 wl2027 commented Jun 30, 2025

fix muzzle2 task failure in restlet-1.1 module

Meanwhile, I have two questions

  • The current inverseOf() function completely copies all configurations from the original directive, including extraDependency. However, some extraDependency entries may only exist within specific version ranges. Should we modify the logic so that implicitly generated fail tasks don't copy extraDependency settings, or add a version range restriction mechanism for extraDependency ?

  • assertInverse.set(true) dynamically generates implicit fail directives, but the detailed configurations of these directives are not visible in error build logs. Should we print these implicitly generated fail task configurations during the build process to help developers better understand and troubleshoot issues?

recurrence #14113

@wl2027 wl2027 requested a review from a team as a code owner June 30, 2025 03:38
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm going to go ahead and merge this to fix the build.

I think my suggestion here is to remove the assertInverse and leave a comment there instead about why we can't use assertInverse

I don't think there's much risk of not using assertInverse in this particular case anyways, and any changes to muzzle to accommodate this usage pattern better may not be worth it.

@trask trask enabled auto-merge (squash) June 30, 2025 03:45
@trask trask merged commit 78ba947 into open-telemetry:main Jun 30, 2025
89 checks passed
wl2027 added a commit to wl2027/opentelemetry-java-instrumentation that referenced this pull request Jun 30, 2025
assertInverse was removed because extraDependency is not available in later versions (e.g., 2.5.x),which causes exception during muzzle. open-telemetry#14159
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants